package com.maxdu.labs.stt.models;

import java.io.Serializable;
import java.util.UUID;

public class TPlan implements Serializable{

	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private int type;
	private int duration;
	private int frequency;
	
	public TPlan(String tplanId, String name, int type, int duration,
			int frequency) {
		super();
		if (tplanId == null){
			this.id = UUID.randomUUID().toString();
		}else{
			this.id = tplanId;
		}
		this.name = name;
		this.type = type;
		this.duration = duration;
		this.frequency = frequency;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public int getFrequency() {
		return frequency;
	}
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
	
}
